package day04;

import java.util.Scanner;

public class CommandBySwitch {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请选择您的英雄:1.安琪拉 2.艾瑞莉娅 3.瑞文 4.随机");
        int command = sc.nextInt();
        selectHero(command);

    }

    public static void selectHero(int command) {
        switch (command) {
            case 1:
            System.out.println("您选择安琪拉作为初始英雄");
            break;
            case 2:
            System.out.println("您选择艾瑞莉娅作为初始英雄");
            break;
            case 3:
            System.out.println("您选择瑞文作为初始英雄");
            break;
            case 4:
            System.out.println("您选择随机英雄");
            break;
            default:
                System.out.println("选择错误");
        }
    }
}
